<html ng-app="set">
  <head>
    <script src="/third_party/static/jquery-2.0.3/jquery.min.js"></script>
    <script src="/third_party/static/angularjs-1.2.0-rc.3/angular.min.js"></script>
  </head>

  <body onload="onWidgetLoad()">
    <div ng-controller="SetInput">
    
      <ul>
        <li ng-repeat="element in answer">
          <[element]>
          <button type="button" ng-click="deleteElement($index)">
            &times;
          </button>
        </li>
      </ul>

      <form ng-submit="addElement(newElement)">
        <input type="text" ng-model="newElement" placeholder="Add Element" required>
        <button type="submit">+</button>
      </form>

      <button type="button" ng-click="submitAnswer(answer)">Submit</button>
    </div>

    <script src="/extensions/widgets/interactive/SetInput/static/js/SetInput.js">
    </script>
  </body>
</html>
